package com.huawei.translate.vo.translate;

import net.logstash.logback.encoder.org.apache.commons.lang.StringUtils;

public class DetectRequest {

    private String content;

    private String accessToken;

    public DetectRequest() {
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public boolean isValid() {
        return StringUtils.isNotEmpty(content) && StringUtils.isNotEmpty(accessToken);
    }
}
